package com.sisyphe.android.srouter.demo.user

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.material3.Surface
import androidx.compose.ui.Modifier
import com.sisyphe.android.srouter.SRouter
import com.sisyphe.android.srouter.facade.annotation.Autowired
import com.sisyphe.android.srouter.facade.annotation.Route

@Route(path = "user/login", name = "登录页")
class LoginActivity : ComponentActivity() {

    @Autowired(name = "username", required = true)
    lateinit var username: String

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        SRouter.inject(this)
        setContent {
            Surface {
                Box(modifier = Modifier.fillMaxSize())
            }
        }
    }
}